package com.dong.policy.task;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * @author zhaodongchao
 * @date 2020/11/17 16:08
 */
@Component
public class MyAsynTask {
    @Async
    public void test(){
        int a = 1/0 ;
        System.out.println("我是一个异步方法");
    }
}
